package com.huarui.task.service;

import com.huarui.task.service.provider.TaskDetailProvider;
import com.huarui.task.service.provider.TaskOwnerProvider;
import com.huarui.task.service.provider.TaskProvider;

public interface TaskEngineService {

	boolean create(Integer workFlowId, String tableName, Integer tableId,
			String tableCode, Integer status, Integer statusId,
			String statusName, String remark, String taskName);

	boolean create(TaskProvider taskProvider,
			TaskDetailProvider taskDetailProvider,
			TaskOwnerProvider taskOwnerProvider);

	boolean update(TaskProvider taskProvider,
			TaskDetailProvider taskDetailProvider,
			TaskOwnerProvider taskOwnerProvider);

//	boolean commit(Integer id);

//	boolean transmit(Integer id, Integer userId);

	boolean rollback(final Integer id);

}
